﻿@model Mestedur.ViewModels.EditorViewModels.EditorChapterViewModel

@{
    ViewBag.Title = "EditChapter";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Редактировать главу</h2>

<form method="post">
 <div class="text"> 
<table class="tableEdit"> 

  <tr>
    <td>@Html.LabelFor(x=>x.ChapterName)</td>
    <td>@Html.TextBoxFor(x=>x.ChapterName)</td>
  </tr>

<tr>
    <td>@Html.LabelFor(x=>x.ChapterData)</td>
    <td>@Html.TextAreaFor(x=>x.ChapterData)</td>
</tr>

  <tr>
    <td>@Html.LabelFor(x=>x.NumberInOrder)</td>
    <td>@Html.EditorFor(x=>x.NumberInOrder)</td>
  </tr>

<tr>
    <td>@Html.LabelFor(x=>x.TopicId)</td>
    <td>@Html.DropDownListFor(x=>x.TopicId, new SelectList(ViewBag.Topics, "Id", "TopicName", Model.TopicId))</td>
  </tr>
</div> 
</table>


<center><input type="submit" value="Сохранить" /></center>

</form>
